package com.xiangge.zuoye2;

import java.util.Scanner;

public class Demo2 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入星期数：");
        int day = input.nextInt();
        if (day<0||day>7){
            System.err.println("数据非法");
            return;
        }
        String a = "";
        switch (day){
            case 1:
                a="跑步";
                break;
            case 2:
                a="打篮球";
                break;
            case 3:
                a="慢走";
                break;
            case 4:
                a="山地自行车";
                break;
            case 5:
                a="游泳";
                break;
            case 6:
                a="爬山";
                break;
            case 7:
                a="胡吃海喝一顿";
                break;

        }
        System.out.println(a);

    }
}
